package customer

import (
	"counter-help/admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type CusCustomizationRouter struct {}

// InitCusCustomizationRouter 初始化 cusCustomization表 路由信息
func (s *CusCustomizationRouter) InitCusCustomizationRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	cusCustomizationRouter := Router.Group("cusCustomization").Use(middleware.OperationRecord())
	cusCustomizationRouterWithoutRecord := Router.Group("cusCustomization")
	cusCustomizationRouterWithoutAuth := PublicRouter.Group("cusCustomization")
	{
		cusCustomizationRouter.POST("createCusCustomization", cusCustomizationApi.CreateCusCustomization)   // 新建cusCustomization表
		cusCustomizationRouter.DELETE("deleteCusCustomization", cusCustomizationApi.DeleteCusCustomization) // 删除cusCustomization表
		cusCustomizationRouter.DELETE("deleteCusCustomizationByIds", cusCustomizationApi.DeleteCusCustomizationByIds) // 批量删除cusCustomization表
		cusCustomizationRouter.PUT("updateCusCustomization", cusCustomizationApi.UpdateCusCustomization)    // 更新cusCustomization表
	}
	{
		cusCustomizationRouterWithoutRecord.GET("findCusCustomization", cusCustomizationApi.FindCusCustomization)        // 根据ID获取cusCustomization表
		cusCustomizationRouterWithoutRecord.GET("getCusCustomizationList", cusCustomizationApi.GetCusCustomizationList)  // 获取cusCustomization表列表
	}
	{
	    cusCustomizationRouterWithoutAuth.GET("getCusCustomizationPublic", cusCustomizationApi.GetCusCustomizationPublic)  // 获取cusCustomization表列表
	}
}
